<p><i class="icon-ok"></i> Os campos com * são obrigatórios</p>

<div id="container">
    
    <table class="table table-striped table-bordered table-hover">

        <tr>
            <th width="100"><?=$t_pais;?> *</th>
            <th width="50">CODE *</th>
            <th width="50"><?=$t_posto;?></th>
            <th width="150">Guerra</th>
            <th width="250"><?=$t_nome;?></th>
            <th width="200"><?=$t_fun;?></th>
            <th width="50">Tel *</th>
            <th width="150">Local *</th>
            <th width="150"><?=$t_grupo;?> *</th>
        </tr>

        <?php 
        if (isset($_GET['add'])){ $_GET['num'] = $_GET['num']+$_GET['add']; } else { $_GET['num'] = 1; }
        for ($i=0;$i<$_GET['num'];$i++){ 
        ?>
        <tr>
            <td>
                <?php 
                $estilo = "style='width:150px;'";
                include "mod/combo/pai_id_array.php"; 
                ?>
            </td>
            <td><input type="text" name="cli_code[]" class="span1" value="<?php echo $cli_code[$i];?>"></td>
            <td>
                <?php 
                $estilo = "style='width:100px;'";
                include "mod/combo/pos_id_array.php"; 
                ?>
            </td>
            <td>
                <input type="text" name="cli_guerra[]" value="<?php echo $cli_guerra[$i];?>" class="span2" placeholder="Nome de guerra" />
            </td>
            <td>
                <input type="text" name="cli_nome[]" value="<?php echo $cli_nome[$i];?>" class="span3" placeholder="Nome completo" />
            </td>
            <td><input type="text" name="cli_funcao[]"  value="<?php echo $cli_funcao[$i];?>" class="span3"/></td>
            <td><input type="text" name="cli_tel[]"  value="<?php echo $cli_tel[$i];?>" class="span2"/></td>
            <td>
                <?php 
                $estilo = "style='width:200px;'";
                include "mod/combo/loc_id_array.php"; 
                ?>
            </td>
            <td>
                <?php 
                $estilo = "style='width:150px;'";
                include "mod/combo/gru_id_array.php"; 
                ?>
            </td>
        </tr>

    <?php } ?>

    </table>
    
    <p><a href="?pag=manning_incluir&add=1&num=<?php echo $_GET['num'];?>" target="_self" class="btn"><i class="icon-plus"></i> Adicionar item</a></p>
    
</div>
